import BuffUtil from '@/BuffUtil';
import UnitSpellEvent from '@/event/UnitSpellEvent';
export default class Item_古尔丹之颅 {
    static id = 'Aged';
    static 名称: string = '古尔丹之颅';
    static 描述: string = '暂时增强你的法术强度';
    static 图标: string = 'ReplaceableTextures\\CommandButtons\\BTNGuldanSkull.blp';
    static buffId: string = 'buff_item_aged';
    static buffType: AppBuffType = {
        id: 'buff_item_aged',
        name: Item_古尔丹之颅.名称,
        ubertip: Item_古尔丹之颅.描述,
        art: Item_古尔丹之颅.图标,
        attribute: {
            法术强度: 200,
        },
        dur: 15,
        targetArt: 'Doodads\\Cityscape\\Props\\MagicRunes\\MagicRunes0.mdl',
        targetAttach: 'righthand',
    };
    static 释放(x: number, y: number, 来源?: unit, 目标?: unit, d?: any) {
        BuffUtil.addBuff(来源, Item_古尔丹之颅.buffId, 来源);
    }
    constructor() {
        BuffUtil.registerBuffType(Item_古尔丹之颅.buffType);
        se.onUnitSpellEffect(Item_古尔丹之颅.spellEffect, Item_古尔丹之颅.id);
    }
    static spellEffect(this: void, d: UnitSpellEvent) {
        Item_古尔丹之颅.释放(d.spellTargetX, d.spellTargetY, d.trigUnit, d.spellTargetUnit, d);
    }
}
